package com.ruoyi.electronicFence.service.Impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.electronicFence.mapper.TEquipmentMonitorDeviceMapper;
import com.ruoyi.electronicFence.domain.TEquipmentMonitorDevice;
import com.ruoyi.electronicFence.service.ITEquipmentMonitorDeviceService;

/**
 * equipmentMonitorDeviceService业务层处理
 *
 * @author sxygsj
 * @date 2024-08-07
 */
@Service
public class TEquipmentMonitorDeviceServiceImpl implements ITEquipmentMonitorDeviceService
{
    @Autowired
    private TEquipmentMonitorDeviceMapper tEquipmentMonitorDeviceMapper;

    /**
     * 查询equipmentMonitorDevice
     *
     * @param id equipmentMonitorDevice主键
     * @return equipmentMonitorDevice
     */
    @Override
    public TEquipmentMonitorDevice selectTEquipmentMonitorDeviceById(Long id)
    {
        return tEquipmentMonitorDeviceMapper.selectTEquipmentMonitorDeviceById(id);
    }

    /**
     * 查询equipmentMonitorDevice列表
     *
     * @param tEquipmentMonitorDevice equipmentMonitorDevice
     * @return equipmentMonitorDevice
     */
    @Override
    public List<TEquipmentMonitorDevice> selectTEquipmentMonitorDeviceList(TEquipmentMonitorDevice tEquipmentMonitorDevice)
    {
        return tEquipmentMonitorDeviceMapper.selectTEquipmentMonitorDeviceList(tEquipmentMonitorDevice);
    }

    /**
     * 新增equipmentMonitorDevice
     *
     * @param tEquipmentMonitorDevice equipmentMonitorDevice
     * @return 结果
     */
    @Override
    public int insertTEquipmentMonitorDevice(TEquipmentMonitorDevice tEquipmentMonitorDevice)
    {
        return tEquipmentMonitorDeviceMapper.insertTEquipmentMonitorDevice(tEquipmentMonitorDevice);
    }

    /**
     * 修改equipmentMonitorDevice
     *
     * @param tEquipmentMonitorDevice equipmentMonitorDevice
     * @return 结果
     */
    @Override
    public int updateTEquipmentMonitorDevice(TEquipmentMonitorDevice tEquipmentMonitorDevice)
    {
        return tEquipmentMonitorDeviceMapper.updateTEquipmentMonitorDevice(tEquipmentMonitorDevice);
    }

    /**
     * 批量删除equipmentMonitorDevice
     *
     * @param ids 需要删除的equipmentMonitorDevice主键
     * @return 结果
     */
    @Override
    public int deleteTEquipmentMonitorDeviceByIds(Long[] ids)
    {
        return tEquipmentMonitorDeviceMapper.deleteTEquipmentMonitorDeviceByIds(ids);
    }

    /**
     * 删除equipmentMonitorDevice信息
     *
     * @param id equipmentMonitorDevice主键
     * @return 结果
     */
    @Override
    public int deleteTEquipmentMonitorDeviceById(Long id)
    {
        return tEquipmentMonitorDeviceMapper.deleteTEquipmentMonitorDeviceById(id);
    }
}
